<template>
  <div class="home-container">
    我是首页内容
    <!-- <div
      v-for="(item,index) in headerNavList"
      :key="index"
      :class="currentIndex == index?'activeItem'
        :'hc-item'"
      @click="changeNav(item,index)"
    >{{ item }}
    </div> -->
  </div>
</template>

<script>
import { mapGetters } from 'vuex'

export default {
  name: 'Home',
  data() {
    return {
      headerNavList: [
        '初音logo',
        '测试1',
        '首页',
        '应用场景',
        '行业分析',
        '测试2',
        '个人中心'
      ],
      currentIndex: 0
    }
  },
  computed: {
    ...mapGetters(['roles'])
  },
  created() {},
  methods: {
    changeNav(item, index) {
      this.currentIndex = index
    }
  }
}
</script>
<style scope lang="scss">
.home-container {
  display: flex;
  justify-content: space-around;
  // height: 1000px;
  // align-items: center;
  margin-top: 100px;
}
</style>
